package com.max.back.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @program:springbootapi
 * @description:药品 @Author:罗世奇
 * @create: 2022-07-20-21:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@TableName("drug")
public class Drug {
  private static final long serialVersionUID = 1L;

  @TableId("id")
  private String Id;

  @TableField("name")
  private String name;

  @TableField("specification")
  private String specification;

  @TableField("manufacturer")
  private String manufacturer;

  @TableField("usage_dosage")
  private String usageDosage;

  @TableField("unit")
  private Integer unit;

  @TableField("price")
  private  Double price;
  @TableField("drug_type")
  private Integer drugType;

  @TableField("inventory")
  private Integer inventory;

  @TableField("deleted")
  private Boolean deleted;

  @TableField("gmt_create")
  private Date gmtCreate;

  @TableField("gmt_modify")
  private Date gmtModify;

  @TableField("Description")
  private String description;

  public Drug(String id, String name, String specification, String manufacturer, String usageDosage, Integer unit, Double price, Integer drugType, Integer inventory) {
    Id = id;
    this.name = name;
    this.specification = specification;
    this.manufacturer = manufacturer;
    this.usageDosage = usageDosage;
    this.unit = unit;
    this.price = price;
    this.drugType = drugType;
    this.inventory = inventory;
    this.deleted=false;
    this.gmtCreate=new Date();
    this.gmtModify=new Date();
  }


}
